-- CALC_TRIGGER_EVEN_BONUS_DESC
-- 触发事件奖励框提示语计算公式

return function(triggerId, optionId, questionId)
    local desc = "";

    -- 杂物类事件通用选项
    if optionId == 1 then
        local bonusArgs = SkyExploreTriggerM.query(triggerId, "bonus_args");

        -- 特定史莱姆对事件奖励有加成
        if bonusArgs["addon_pet"] ~= nil and #bonusArgs["addon_pet"] > 0 then
            for _, petId in pairs(bonusArgs["addon_pet"]) do
                -- 如果玩家拥有特定史莱姆
                if PetM.getMyPet(petId) then
                    desc = getLocStr("trigger_even_bonus_desc2");
                    desc = string.gsub(desc, "{pet}", PetM.query(petId, "name"));
                    break;
                end
            end
        end

        if "" == desc then
            desc = getLocStr("trigger_even_bonus_desc1");
        end
    end

    return desc;
end